
package com.joolun.cloud.mall.api.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.joolun.cloud.mall.api.mapper.DistributionOrderMapper;
import com.joolun.cloud.mall.api.service.DistributionOrderService;
import com.joolun.cloud.mall.common.entity.DistributionOrder;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * 分销订单
 *
 * @author www.joolun.com
 * @date 2021-04-30 10:26:30
 */
@Service
public class DistributionOrderServiceImpl extends ServiceImpl<DistributionOrderMapper, DistributionOrder> implements DistributionOrderService {
	@Override
	public IPage<DistributionOrder> page1(IPage<DistributionOrder> page, DistributionOrder distributionOrder) {
		return baseMapper.selectPage1(page, distributionOrder);
	}

	@Override
	public BigDecimal getDistributionUserFrozenAmount(String distributionUserId) {
		return baseMapper.getDistributionUserFrozenAmount(distributionUserId);
	}
}
